<?php 
/* SVN FILE: $Id$ */
/* AccountLog Test cases generated on: 2009-05-31 00:05:30 : 1243745670*/
App::import('Model', 'AccountLog');

class AccountLogTestCase extends CakeTestCase {
	var $AccountLog = null;
	var $fixtures = array('app.account_log', 'app.user');

	function startTest() {
		$this->AccountLog =& ClassRegistry::init('AccountLog');
	}

	function testAccountLogInstance() {
		$this->assertTrue(is_a($this->AccountLog, 'AccountLog'));
	}

	function testAccountLogFind() {
		$this->AccountLog->recursive = -1;
		$results = $this->AccountLog->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('AccountLog' => array(
			'id'  => 1,
			'user_money'  => 1,
			'frozen_money'  => 1,
			'rank_points'  => 1,
			'pay_points'  => 1,
			'change_time'  => '2009-05-31 00:54:29',
			'change_desc'  => 'Lorem ipsum dolor sit amet',
			'user_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>